package org.xydpeng.demo.grpc.config;

import com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration;
import org.springframework.aop.framework.AopContext;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author xydpeng
 * @version v1.0
 * @date: 2024/5/29
 * @description:
 */
@Configuration(proxyBeanMethods = true)
public class GrpcRegistryConfig {

    @Bean
    //@ConditionalOnBean(NacosAutoServiceRegistration.class)
    public GrpcNacosAutoServiceRegistration grpcNacosAutoServiceRegistration() {
        return new GrpcNacosAutoServiceRegistration();
    }
}
